from pydantic import BaseModel


class Return_Data(BaseModel):
    User_ID: str
    Proj_ID: str


# 管理员界面数据
class Admin_Page(BaseModel):
    User_ID :str
    Proj_ID :str
    Page_Data: str


class Admin_Info_Data(BaseModel):
    User_ID: str
    Proj_ID: str
    Frame_Data: str


#修改管理员信息
class admin_info_revise(BaseModel):
    User_ID: str
    User_Name: str
    User_PWD: str
    User_MobileNumber: str
    User_Email: str

#管理员注册信息
class admin_infom(BaseModel):
    User_Name : str
    User_PWD : str
    User_Role : str
    Belong_Depart : str
    Job_Name : str
    User_TruName : str
    User_MobileNumber : str
    User_Email : str
    Register_Date : str = None
    IsQualified : int=0
    Check_Date : str = None
    Check_Name : str =None
    Update_Date : str = None
    Remark : str
    LegalPerson_ID : int = 1000

class frame_type(BaseModel):
    a:str
    b:int
    c:str
    d:str


#组织框架存库
class save_lib_fra(BaseModel):

    add: list=[{"Depart_ID":"str",
                "Depart_Name":"str",
                "Depart_Rank":"str",
                "Belong_Depart_ID":"str",
                "Remark":"str",
                "LegalPerson_ID":"int"}]
    delete: list=[{"depart_ID": "str"}]
    modify:list=[{"Depart_ID":"str",
                "Depart_Name":"str",
                "Depart_Rank":"str",
                "Belong_Depart_ID":"str",
                "Remark":"str",
                "LegalPerson_ID":"int"}]

# 管理单位人员存库
class save_user(BaseModel):
    delete1 : list = ["user_id"]
    modify : list = [{"user_id": "str","user_name":"str","user_pwd":"str","belong_depart":"str",
                    "job_name":"str","user_truname":"str","user_mobilenumber":"str","user_email":"str",
                    "register_date":"2021-6-1","isqualified":"int","remark":"str"}]